←Select platform

Set<T>(CacheItem<T>,CacheItemPolicy) Method

Summary

Adds an item into the cache.

Syntax

C#
VB
Java
C++
public virtual void Set<T>( 
   CacheItem<T> item, 
   CacheItemPolicy policy 
) 
Public Overridable Sub [Set](Of T)( 
   ByVal item As CacheItem(Of T), 
   ByVal policy As CacheItemPolicy 
) 
public:  
   generic<typename T> 
   virtual void Set( 
      CacheItem<T>^ item, 
      CacheItemPolicy^ policy 
   ) 
public<T> void set(CacheItem<T> item, Class<?> classOfT, CacheItemPolicy policy) 

Parameters

item

Cache item to add.

policy

Item expiration policy.

Remarks

If the item is already in the cache, then it will be replaced with the new item and its policy updated.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Caching Assembly